package cn.xz.tipsum.bean

import cn.xz.tipsum.R
import cn.xz.tipsum.utils.AppHelper

//新模式开关
var NEW_OPEN = true

//通用跳转标识
const val JUMP_TYPE = "JUMP_TYPE"

//获取消息
const val GET_MSG = "GET_MSG"
//报错了
const val ERROR_CODE = "ERROR_CODE"

data class MyBean (
    val type: String,
    val value: String,
    val time: String
):java.io.Serializable

/**
 * EventBus消息体
 * */
data class EventBusMessage (
    var messageTag: String? = null,//消息标签
    var messageBody: Any? = null //消息体
): java.io.Serializable

/*出现的问题*/
data class ErrorBean(
    var title: String? = "",
    var content: String? = "",
    var color: String? = "",
    var pic: Int? = null,
):java.io.Serializable

val mErrorList = arrayListOf(
    ErrorBean("实时金额软件使用说明书(点击查看使用说明)","使用说明书","#FFFFFF", R.mipmap.icon_sm),

    ErrorBean("微信扫码收不到1(点击查看解决办法1)","微信扫码收不到1","#228B22", R.mipmap.icon_w500),
    ErrorBean("微信扫码收不到2(点击查看解决办法2)","微信扫码收不到2","#228B22",if (AppHelper.isMIUI()) R.mipmap.icon_w1_900 else R.mipmap.icon_w2),
    ErrorBean("微信没有同时登陆(点击查看解决办法)","没有同时登陆","#228B22",R.mipmap.icon_w4),
    ErrorBean("微信过段时间收不到(点击查看解决办法)","过段时间收不到","#228B22",if (AppHelper.isMIUI()) R.mipmap.icon_w3_900 else R.mipmap.icon_w3_400),

    ErrorBean("支付宝扫码收不到1(点击查看解决办法1)","支付宝扫码收不到","#1E90FF",R.mipmap.icon_z123),
    ErrorBean("支付宝扫码收不到2(点击查看解决办法2)","一键检测没问题","#1E90FF",R.mipmap.ic_z4),
    ErrorBean("支付宝过段时间收不到(点击查看解决办法)","过段时间收不到","#1E90FF",if (AppHelper.isMIUI()) R.mipmap.icon_w3_900 else R.mipmap.icon_w3_400),


    ErrorBean("收款显示相同两条(点击查看解决办法)","相同的两条","#FF7F50",R.mipmap.icon_t1),
    ErrorBean("平板越来越卡(点击查看解决办法)","越来越卡","#FF7F50",R.mipmap.icon_t2),
)